home *** CD-ROM | disk | FTP | other *** search
/ MacHack 1996 / MacHack 1996.toast / Hacks / Hacks ’95 / Closure / Sources / GX Headers / offscreen library.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-06-24  |  1.7 KB  |  72 lines  |  [TEXT/MMCC]

  1. /*
  2.     File:        offscreen library.h
  3.  
  4.     Copyright:    © 1984-1994 by Apple Computer, Inc., all rights reserved.
  5.  
  6.     WARNING
  7.     This file was auto generated by the interfacer tool. Modifications
  8.     must be made to the master file.
  9.  
  10. */
  11.  
  12. #ifndef offscreenLibraryIncludes
  13. #define offscreenLibraryIncludes
  14.  
  15. #ifndef powerc
  16.  #pragma pointers_in_D0                            
  17. #endif
  18.  
  19.     #ifndef graphicsTypesIncludes
  20. #include "graphics types.h"
  21. /*    #include "math types.h"                                        */
  22. /*        #include <Types.h>                                        */
  23. /*            #include <ConditionalMacros.h>                        */
  24. /*            #include <MixedMode.h>                                */
  25. /*                #include <Traps.h>                                */
  26.     #endif
  27.  
  28. #ifndef powerc
  29.  #pragma pointers_in_A0                            
  30. #endif
  31.  
  32.     #ifdef __cplusplus
  33. extern "C" {
  34.     #endif
  35.  
  36. #if defined(powerc) || defined (__powerc)
  37. #pragma options align=mac68k
  38. #endif
  39. struct offscreen {
  40.     gxShape                        draw;
  41.     gxTransform                    xform;
  42.     gxViewDevice                device;
  43.     gxViewPort                    port;
  44.     gxViewGroup                    group;
  45. };
  46. #if defined(powerc) || defined(__powerc)
  47. #pragma options align=reset
  48. #endif
  49.  
  50. typedef struct viewPortBufferRecord **viewPortBuffer;
  51.  
  52.     #ifndef __cplusplus
  53. typedef struct offscreen offscreen;
  54.  
  55.     #endif
  56.  
  57. extern void CreateOffscreen(offscreen *target, gxShape bitmapShape);
  58. extern void DisposeOffscreen(offscreen *target);
  59. extern void CopyToBitmaps(gxShape target, gxShape source);
  60. extern viewPortBuffer NewViewPortBuffer(gxViewPort originalPort);
  61. extern void DisposeViewPortBuffer(viewPortBuffer target);
  62. extern boolean ValidViewPortBuffer(viewPortBuffer target);
  63. extern boolean UpdateViewPortBuffer(viewPortBuffer target);
  64. extern gxViewPort GetViewPortBufferViewPort(viewPortBuffer source);
  65. extern gxShape GetViewPortBufferShape(viewPortBuffer source);
  66.     #ifdef __cplusplus
  67. }
  68.     #endif
  69.  
  70. #endif
  71.  
  72.